﻿using System;

namespace DataMatrix.net
{
	// Token: 0x02000009 RID: 9
	internal static class DmtxConstants
	{
		// Token: 0x04000038 RID: 56
		internal static readonly double DmtxAlmostZero = 1E-06;

		// Token: 0x04000039 RID: 57
		internal static readonly int DmtxModuleOff = 0;

		// Token: 0x0400003A RID: 58
		internal static readonly int DmtxModuleOnRed = 1;

		// Token: 0x0400003B RID: 59
		internal static readonly int DmtxModuleOnGreen = 2;

		// Token: 0x0400003C RID: 60
		internal static readonly int DmtxModuleOnBlue = 4;

		// Token: 0x0400003D RID: 61
		internal static readonly int DmtxModuleOnRGB = 7;

		// Token: 0x0400003E RID: 62
		internal static readonly int DmtxModuleOn = 7;

		// Token: 0x0400003F RID: 63
		internal static readonly int DmtxModuleUnsure = 8;

		// Token: 0x04000040 RID: 64
		internal static readonly int DmtxModuleAssigned = 16;

		// Token: 0x04000041 RID: 65
		internal static readonly int DmtxModuleVisited = 32;

		// Token: 0x04000042 RID: 66
		internal static readonly int DmtxModuleData = 64;

		// Token: 0x04000043 RID: 67
		internal static readonly byte DmtxCharAsciiPad = 129;

		// Token: 0x04000044 RID: 68
		internal static readonly byte DmtxCharAsciiUpperShift = 235;

		// Token: 0x04000045 RID: 69
		internal static readonly byte DmtxCharTripletShift1 = 0;

		// Token: 0x04000046 RID: 70
		internal static readonly byte DmtxCharTripletShift2 = 1;

		// Token: 0x04000047 RID: 71
		internal static readonly byte DmtxCharTripletShift3 = 2;

		// Token: 0x04000048 RID: 72
		internal static readonly byte DmtxCharFNC1 = 232;

		// Token: 0x04000049 RID: 73
		internal static readonly byte DmtxCharStructuredAppend = 233;

		// Token: 0x0400004A RID: 74
		internal static readonly byte DmtxChar05Macro = 236;

		// Token: 0x0400004B RID: 75
		internal static readonly byte DmtxChar06Macro = 237;

		// Token: 0x0400004C RID: 76
		internal static readonly int DmtxC40TextBasicSet = 0;

		// Token: 0x0400004D RID: 77
		internal static readonly int DmtxC40TextShift1 = 1;

		// Token: 0x0400004E RID: 78
		internal static readonly int DmtxC40TextShift2 = 2;

		// Token: 0x0400004F RID: 79
		internal static readonly int DmtxC40TextShift3 = 3;

		// Token: 0x04000050 RID: 80
		internal static readonly int DmtxCharTripletUnlatch = 254;

		// Token: 0x04000051 RID: 81
		internal static readonly int DmtxCharEdifactUnlatch = 31;

		// Token: 0x04000052 RID: 82
		internal static readonly byte DmtxCharC40Latch = 230;

		// Token: 0x04000053 RID: 83
		internal static readonly byte DmtxCharTextLatch = 239;

		// Token: 0x04000054 RID: 84
		internal static readonly byte DmtxCharX12Latch = 238;

		// Token: 0x04000055 RID: 85
		internal static readonly byte DmtxCharEdifactLatch = 240;

		// Token: 0x04000056 RID: 86
		internal static readonly byte DmtxCharBase256Latch = 231;

		// Token: 0x04000057 RID: 87
		internal static readonly int[] SymbolRows = new int[]
		{
			10,
			12,
			14,
			16,
			18,
			20,
			22,
			24,
			26,
			32,
			36,
			40,
			44,
			48,
			52,
			64,
			72,
			80,
			88,
			96,
			104,
			120,
			132,
			144,
			8,
			8,
			12,
			12,
			16,
			16
		};

		// Token: 0x04000058 RID: 88
		internal static readonly int[] SymbolCols = new int[]
		{
			10,
			12,
			14,
			16,
			18,
			20,
			22,
			24,
			26,
			32,
			36,
			40,
			44,
			48,
			52,
			64,
			72,
			80,
			88,
			96,
			104,
			120,
			132,
			144,
			18,
			32,
			26,
			36,
			36,
			48
		};

		// Token: 0x04000059 RID: 89
		internal static readonly int[] DataRegionRows = new int[]
		{
			8,
			10,
			12,
			14,
			16,
			18,
			20,
			22,
			24,
			14,
			16,
			18,
			20,
			22,
			24,
			14,
			16,
			18,
			20,
			22,
			24,
			18,
			20,
			22,
			6,
			6,
			10,
			10,
			14,
			14
		};

		// Token: 0x0400005A RID: 90
		internal static readonly int[] DataRegionCols = new int[]
		{
			8,
			10,
			12,
			14,
			16,
			18,
			20,
			22,
			24,
			14,
			16,
			18,
			20,
			22,
			24,
			14,
			16,
			18,
			20,
			22,
			24,
			18,
			20,
			22,
			16,
			14,
			24,
			16,
			16,
			22
		};

		// Token: 0x0400005B RID: 91
		internal static readonly int[] HorizDataRegions = new int[]
		{
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			2,
			2,
			2,
			2,
			2,
			2,
			4,
			4,
			4,
			4,
			4,
			4,
			6,
			6,
			6,
			1,
			2,
			1,
			2,
			2,
			2
		};

		// Token: 0x0400005C RID: 92
		internal static readonly int[] InterleavedBlocks = new int[]
		{
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			1,
			2,
			2,
			4,
			4,
			4,
			4,
			6,
			6,
			8,
			10,
			1,
			1,
			1,
			1,
			1,
			1
		};

		// Token: 0x0400005D RID: 93
		internal static readonly int[] SymbolDataWords = new int[]
		{
			3,
			5,
			8,
			12,
			18,
			22,
			30,
			36,
			44,
			62,
			86,
			114,
			144,
			174,
			204,
			280,
			368,
			456,
			576,
			696,
			816,
			1050,
			1304,
			1558,
			5,
			10,
			16,
			22,
			32,
			49
		};

		// Token: 0x0400005E RID: 94
		internal static readonly int[] BlockErrorWords = new int[]
		{
			5,
			7,
			10,
			12,
			14,
			18,
			20,
			24,
			28,
			36,
			42,
			48,
			56,
			68,
			42,
			56,
			36,
			48,
			56,
			68,
			56,
			68,
			62,
			62,
			7,
			11,
			14,
			18,
			24,
			28
		};

		// Token: 0x0400005F RID: 95
		internal static readonly int[] BlockMaxCorrectable = new int[]
		{
			2,
			3,
			5,
			6,
			7,
			9,
			10,
			12,
			14,
			18,
			21,
			24,
			28,
			34,
			21,
			28,
			18,
			24,
			28,
			34,
			28,
			34,
			31,
			31,
			3,
			5,
			7,
			9,
			12,
			14
		};

		// Token: 0x04000060 RID: 96
		internal static readonly int DmtxSymbolSquareCount = 24;

		// Token: 0x04000061 RID: 97
		internal static readonly int DmtxSymbolRectCount = 6;

		// Token: 0x04000062 RID: 98
		internal static readonly int DmtxUndefined = -1;

		// Token: 0x04000063 RID: 99
		internal static readonly int[] DmtxPatternX = new int[]
		{
			-1,
			0,
			1,
			1,
			1,
			0,
			-1,
			-1
		};

		// Token: 0x04000064 RID: 100
		internal static readonly int[] DmtxPatternY = new int[]
		{
			-1,
			-1,
			-1,
			0,
			1,
			1,
			1,
			0
		};

		// Token: 0x04000065 RID: 101
		internal static readonly DmtxPointFlow DmtxBlankEdge = new DmtxPointFlow
		{
			Plane = 0,
			Arrive = 0,
			Depart = 0,
			Mag = DmtxConstants.DmtxUndefined,
			Loc = new DmtxPixelLoc
			{
				X = -1,
				Y = -1
			}
		};

		// Token: 0x04000066 RID: 102
		internal static readonly int DmtxHoughRes = 180;

		// Token: 0x04000067 RID: 103
		internal static readonly int DmtxNeighborNone = 8;

		// Token: 0x04000068 RID: 104
		internal static readonly int[] rHvX = new int[]
		{
			256,
			256,
			256,
			256,
			255,
			255,
			255,
			254,
			254,
			253,
			252,
			251,
			250,
			249,
			248,
			247,
			246,
			245,
			243,
			242,
			241,
			239,
			237,
			236,
			234,
			232,
			230,
			228,
			226,
			224,
			222,
			219,
			217,
			215,
			212,
			210,
			207,
			204,
			202,
			199,
			196,
			193,
			190,
			187,
			184,
			181,
			178,
			175,
			171,
			168,
			165,
			161,
			158,
			154,
			150,
			147,
			143,
			139,
			136,
			132,
			128,
			124,
			120,
			116,
			112,
			108,
			104,
			100,
			96,
			92,
			88,
			83,
			79,
			75,
			71,
			66,
			62,
			58,
			53,
			49,
			44,
			40,
			36,
			31,
			27,
			22,
			18,
			13,
			9,
			4,
			0,
			-4,
			-9,
			-13,
			-18,
			-22,
			-27,
			-31,
			-36,
			-40,
			-44,
			-49,
			-53,
			-58,
			-62,
			-66,
			-71,
			-75,
			-79,
			-83,
			-88,
			-92,
			-96,
			-100,
			-104,
			-108,
			-112,
			-116,
			-120,
			-124,
			-128,
			-132,
			-136,
			-139,
			-143,
			-147,
			-150,
			-154,
			-158,
			-161,
			-165,
			-168,
			-171,
			-175,
			-178,
			-181,
			-184,
			-187,
			-190,
			-193,
			-196,
			-199,
			-202,
			-204,
			-207,
			-210,
			-212,
			-215,
			-217,
			-219,
			-222,
			-224,
			-226,
			-228,
			-230,
			-232,
			-234,
			-236,
			-237,
			-239,
			-241,
			-242,
			-243,
			-245,
			-246,
			-247,
			-248,
			-249,
			-250,
			-251,
			-252,
			-253,
			-254,
			-254,
			-255,
			-255,
			-255,
			-256,
			-256,
			-256
		};

		// Token: 0x04000069 RID: 105
		internal static readonly int[] rHvY = new int[]
		{
			0,
			4,
			9,
			13,
			18,
			22,
			27,
			31,
			36,
			40,
			44,
			49,
			53,
			58,
			62,
			66,
			71,
			75,
			79,
			83,
			88,
			92,
			96,
			100,
			104,
			108,
			112,
			116,
			120,
			124,
			128,
			132,
			136,
			139,
			143,
			147,
			150,
			154,
			158,
			161,
			165,
			168,
			171,
			175,
			178,
			181,
			184,
			187,
			190,
			193,
			196,
			199,
			202,
			204,
			207,
			210,
			212,
			215,
			217,
			219,
			222,
			224,
			226,
			228,
			230,
			232,
			234,
			236,
			237,
			239,
			241,
			242,
			243,
			245,
			246,
			247,
			248,
			249,
			250,
			251,
			252,
			253,
			254,
			254,
			255,
			255,
			255,
			256,
			256,
			256,
			256,
			256,
			256,
			256,
			255,
			255,
			255,
			254,
			254,
			253,
			252,
			251,
			250,
			249,
			248,
			247,
			246,
			245,
			243,
			242,
			241,
			239,
			237,
			236,
			234,
			232,
			230,
			228,
			226,
			224,
			222,
			219,
			217,
			215,
			212,
			210,
			207,
			204,
			202,
			199,
			196,
			193,
			190,
			187,
			184,
			181,
			178,
			175,
			171,
			168,
			165,
			161,
			158,
			154,
			150,
			147,
			143,
			139,
			136,
			132,
			128,
			124,
			120,
			116,
			112,
			108,
			104,
			100,
			96,
			92,
			88,
			83,
			79,
			75,
			71,
			66,
			62,
			58,
			53,
			49,
			44,
			40,
			36,
			31,
			27,
			22,
			18,
			13,
			9,
			4
		};

		// Token: 0x0400006A RID: 106
		internal static readonly int[] aLogVal = new int[]
		{
			1,
			2,
			4,
			8,
			16,
			32,
			64,
			128,
			45,
			90,
			180,
			69,
			138,
			57,
			114,
			228,
			229,
			231,
			227,
			235,
			251,
			219,
			155,
			27,
			54,
			108,
			216,
			157,
			23,
			46,
			92,
			184,
			93,
			186,
			89,
			178,
			73,
			146,
			9,
			18,
			36,
			72,
			144,
			13,
			26,
			52,
			104,
			208,
			141,
			55,
			110,
			220,
			149,
			7,
			14,
			28,
			56,
			112,
			224,
			237,
			247,
			195,
			171,
			123,
			246,
			193,
			175,
			115,
			230,
			225,
			239,
			243,
			203,
			187,
			91,
			182,
			65,
			130,
			41,
			82,
			164,
			101,
			202,
			185,
			95,
			190,
			81,
			162,
			105,
			210,
			137,
			63,
			126,
			252,
			213,
			135,
			35,
			70,
			140,
			53,
			106,
			212,
			133,
			39,
			78,
			156,
			21,
			42,
			84,
			168,
			125,
			250,
			217,
			159,
			19,
			38,
			76,
			152,
			29,
			58,
			116,
			232,
			253,
			215,
			131,
			43,
			86,
			172,
			117,
			234,
			249,
			223,
			147,
			11,
			22,
			44,
			88,
			176,
			77,
			154,
			25,
			50,
			100,
			200,
			189,
			87,
			174,
			113,
			226,
			233,
			255,
			211,
			139,
			59,
			118,
			236,
			245,
			199,
			163,
			107,
			214,
			129,
			47,
			94,
			188,
			85,
			170,
			121,
			242,
			201,
			191,
			83,
			166,
			97,
			194,
			169,
			127,
			254,
			209,
			143,
			51,
			102,
			204,
			181,
			71,
			142,
			49,
			98,
			196,
			165,
			103,
			206,
			177,
			79,
			158,
			17,
			34,
			68,
			136,
			61,
			122,
			244,
			197,
			167,
			99,
			198,
			161,
			111,
			222,
			145,
			15,
			30,
			60,
			120,
			240,
			205,
			183,
			67,
			134,
			33,
			66,
			132,
			37,
			74,
			148,
			5,
			10,
			20,
			40,
			80,
			160,
			109,
			218,
			153,
			31,
			62,
			124,
			248,
			221,
			151,
			3,
			6,
			12,
			24,
			48,
			96,
			192,
			173,
			119,
			238,
			241,
			207,
			179,
			75,
			150,
			1
		};

		// Token: 0x0400006B RID: 107
		internal static readonly int[] logVal = new int[]
		{
			-255,
			255,
			1,
			240,
			2,
			225,
			241,
			53,
			3,
			38,
			226,
			133,
			242,
			43,
			54,
			210,
			4,
			195,
			39,
			114,
			227,
			106,
			134,
			28,
			243,
			140,
			44,
			23,
			55,
			118,
			211,
			234,
			5,
			219,
			196,
			96,
			40,
			222,
			115,
			103,
			228,
			78,
			107,
			125,
			135,
			8,
			29,
			162,
			244,
			186,
			141,
			180,
			45,
			99,
			24,
			49,
			56,
			13,
			119,
			153,
			212,
			199,
			235,
			91,
			6,
			76,
			220,
			217,
			197,
			11,
			97,
			184,
			41,
			36,
			223,
			253,
			116,
			138,
			104,
			193,
			229,
			86,
			79,
			171,
			108,
			165,
			126,
			145,
			136,
			34,
			9,
			74,
			30,
			32,
			163,
			84,
			245,
			173,
			187,
			204,
			142,
			81,
			181,
			190,
			46,
			88,
			100,
			159,
			25,
			231,
			50,
			207,
			57,
			147,
			14,
			67,
			120,
			128,
			154,
			248,
			213,
			167,
			200,
			63,
			236,
			110,
			92,
			176,
			7,
			161,
			77,
			124,
			221,
			102,
			218,
			95,
			198,
			90,
			12,
			152,
			98,
			48,
			185,
			179,
			42,
			209,
			37,
			132,
			224,
			52,
			254,
			239,
			117,
			233,
			139,
			22,
			105,
			27,
			194,
			113,
			230,
			206,
			87,
			158,
			80,
			189,
			172,
			203,
			109,
			175,
			166,
			62,
			127,
			247,
			146,
			66,
			137,
			192,
			35,
			252,
			10,
			183,
			75,
			216,
			31,
			83,
			33,
			73,
			164,
			144,
			85,
			170,
			246,
			65,
			174,
			61,
			188,
			202,
			205,
			157,
			143,
			169,
			82,
			72,
			182,
			215,
			191,
			251,
			47,
			178,
			89,
			151,
			101,
			94,
			160,
			123,
			26,
			112,
			232,
			21,
			51,
			238,
			208,
			131,
			58,
			69,
			148,
			18,
			15,
			16,
			68,
			17,
			121,
			149,
			129,
			19,
			155,
			59,
			249,
			70,
			214,
			250,
			168,
			71,
			201,
			156,
			64,
			60,
			237,
			130,
			111,
			20,
			93,
			122,
			177,
			150
		};
	}
}
